//
//  command_line_arguments.hpp
//  learnC++
//
//  Created by apple on 2018/6/1.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef command_line_arguments_hpp
#define command_line_arguments_hpp

#include <stdio.h>


//菜单 Product -> Edit Scheme（Shift+Cmd+，）
//
//
//左边找到run xxx点击后在右边选择Arguments面板中就可以设置XCode在运行命令行app时模拟输参数（按加号添加）

//main{
//std::cout << "There are " << argc << " arguments:\n";
//
//// Loop through each argument and print its number and value
//for (int count=0; count < argc; ++count)
//std::cout << count << " " << argv[count] << '\n';
//}


//运行结果
//There are 2 arguments:
//0 /Users/apple/Library/Developer/Xcode/DerivedData/learnC++-avvjghhgeybzzwfubeibknmmuegi/Build/Products/Debug/learnC++
//1 9999




#endif /* command_line_arguments_hpp */
